const router = require('koa-router')()
const Admin_controllers = require('../../controllers/Admin_controllers')


router
  .get('/getAllUser',Admin_controllers.get_all_users)
  .post('/user/select', Admin_controllers.post_user_select)
    // 获取全部教室信息
  .get('/get/classRoom',Admin_controllers.get_all_class)
  .get('/getAll/classRoom',Admin_controllers.get_all_class_all)
  .get('/classRoom/apply',Admin_controllers.get_classRoom_apply)
  // 教室
  .post('/classRoom/delect',Admin_controllers.delete_ClassRoom)
  .post('/classRoom/updata',Admin_controllers.updata_classroom)
  .get('/getclassroom1',Admin_controllers.get_classroom1)
  .get('/getclassroom2',Admin_controllers.get_classroom2)

  .get('/admin/getNumber',Admin_controllers.select_num_user_)
  .get('/admin/getApplyN',Admin_controllers.select_apply_N)
  .post('/admin/upRoomApply',Admin_controllers.SET_classroom__)

  .get('/apply/getListY',Admin_controllers.get_apply_all_Y)
  .get('/apply/getListN',Admin_controllers.get_apply_all_N)
  .post('/admin/applyNT',Admin_controllers.set_spply_NT)
  .post('/admin/apply-Y',Admin_controllers.set_spply_Y)
  
  .get('/apply/getApplyNT',Admin_controllers.GET_Apply_Y)
module.exports = router